//
//@File    :	6.4_or.cpp
//@Time    :	2021/08/07 20:20:19
//@Auther  :	Sun Sheng
//@Contact :	970340843@qq.com
//@Desc    :	using the loical OR operator
//

#include <iostream>

int main()
{
    using namespace std;
    cout<<"This program may reformat your hard disk\n"
          "and destroy all your data.\n"
          "Do you wish ti continue?<y/n> ";
    char ch;
    cin>>ch;
    if (ch=='y'||ch=='Y')
    {
        cout<<"you were warned!\a\a\n";
    }
    else if (ch=='n'||ch=='N')
    {
        cout<<"A wise chice ... bue\n";
    }
    else
    {
        cout<<"That wasn't a y or n!Apparently you "
              "can't follow\nninstructions.so "
              "I'll trash your disk anyway.\a\a\a\n";
    }
    
    system("pause");
    return 0;
}